import * as http from '@api/http'
/**
 * @purpose 获取微信公众号appid
 * @returns {PromiseLike<string> | Promise<string> | *}
 */
export function appid () {
  return http
    .get('wechat.appid')
    .then(r => r.data.appid)
}
/**
 * @purpose 获取jssdk签名
 * @returns {PromiseLike<T> | Promise<T> | *}
 */
export function jssdk () {
  return http
    .get('wechat.jssdk', {
      url: window.location.href
    })
    .then(r => r.data)
}
